package com.designmode.study.designmode.state.state1;

/**
 * @ClassName: Client
 * @Description: 定义一个客户类
 * @Auther: shi
 * @Date: 2019/3/26 18:45
 */
public class Client {
    public static void main(String[] args) {
        ILift lift = new Lift();
        //首先是电梯门开启，人进去
        lift.open();
        //然后电梯门关闭
        lift.close();
        //再然后，电梯跑起来，向上或者向下
        lift.run();
        //最后到达目的地，电梯挺下来
        lift.stop();
    }

}
